<?php
require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($GLOBALS['PAD']."Modules/FJK46JDE/modconf.php"); 
MYTCONN();
	form_pr('sys_users','','','post'); 
	//=======================================================
	// Gest Users
?>
<div id="UserAction"></div>
<div class="title"><b>GestÃo de pessoal</b></div>

<table width="100%"  border="0" cellpadding="1" cellspacing="4" bgcolor="#F2F2F2">
  <tr>
    <td align="center"><div align="center">Lojas</div></td>
    <td align="center"><div align="center">Estado</div></td>
    <td align="center"><div align="center">Grupo</div></td>
    <td align="center"><div align="center"></div></td>
    <td align="center"><div align="center"></div></td>
  </tr>
  <tr>
    <td valign="top" bgcolor="#F2F2F2"><?php 
	
		
		 $Qur = "SELECT ref AS ID, name AS NAME FROM systemoffice.main_offices";
		 mn_field('select','ED','SYSOffices','',$Qur,' ','False','');
		 ?></td>
    <td width="13%" valign="top"><?php 
	
		
		 $Qur = " ;Em Aprovacao;Activo;Suspenso;Eliminado#;1;2;3;5";
		 mn_field('hselect','ED','SYSUserStatus','',$Qur,' ','False','');
		 ?></td>
    <td width="12%" valign="top"><?php 
	
		
		 $Qur = "SELECT sug_ID AS ID, sug_Name AS NAME FROM systemoffice.sys_usergroups";
		 mn_field('select','ED','SYSUserGroups','',$Qur,' ','False','');
		 ?></td>
    <td width="25%" valign="top"></td>
    <td width="50%" valign="top">
    	<?php 
		 mn_field('button','ED','SYSUser_Search','Consultar','','','False','SUBMIT "
		 	onClick="
				document.sys_users.action=\''.$MODURL.'lib/get_staff.php\';
				subform(\'sys_users\',\'UserList\');');?></td>
  </tr>
</table>
</form>
<div id="UserList"></div>